﻿using System;
using System.Collections.Generic;
using Transport.Core.Models.Parcels;

namespace Transport.Models
{
    public class TracingDetailModel
    {
        public string TrackingNumber { get; set; }
        public int Status { get; set; }
        public string StatusName 
        { 
            get
                {
                    return Status == (int) TrackingStatus.EnumTrackingStatus.Success
                               ? "Phát thành công"
                               : "Đang phát";
                }
        }
        public DateTime DateOfSending { get; set; }
        public string Receiver { get; set; }
        public DateTime? ReceivedDate { get; set; }
        public IEnumerable<TrackingModel> Trackings { get; set; }
    }
}